package cn.tedu.pojo;

import org.springframework.stereotype.Component;

@Component
public class Student {
    private String name = "rose";
    private int studentnum = 25;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getStudentnum() {
        return studentnum;
    }

    public void setStudentnum(int studentnum) {
        this.studentnum = studentnum;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", studentnum=" + studentnum +
                '}';
    }
}
